package com.nlx.notes.support.command;

import com.nlx.notes.support.helper.gold.GoldPriceCalculateHelper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class StartupRunner implements CommandLineRunner {




    @Override
    public void run(String... args) throws Exception {
        log.info("程序启动后需要执行的逻辑");
        GoldPriceCalculateHelper.startGoldPriceCalculate();
    }
}
